package com.stus.web;

import com.stus.model.Member;
import com.stus.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by Alias on 2016/4/11.
 */
@Controller
public class MemberController {
    @Autowired
    private MemberService memberService;
    @RequestMapping("/AddUserDo")
    public String addMember(Member member){
        memberService.insertMember(member);
        return "AddUser";
    }
}
